package dgut.haitaobao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import dgut.haitaobao.entry.ProductSku;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductSkuMapper extends BaseMapper<ProductSku> {
    //根据productId查询出相应的所有Sku信息
    public List<ProductSku> getProductSkusByProductId(String productId);

    //根据productId查询出价格最低的Sku信息
    public List<ProductSku> getProductSkusByMinSellPrice(String productId);
}
